fix missing-field-initializers clang diagnostic. (#207)
authortsteven4 <tsteven4@users.noreply.github.com>
Tue, 26 Jun 2018 18:01:42 +0000 (12:01 -0600)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 18:01:42 +0000 (12:01 -0600)
15 files changed:
alan.cc
an1.cc
bushnell.cc
bushnell_trl.cc
compegps.cc
dmtlog.cc
energympro.cc
enigma.cc
exif.cc
garmin_txt.cc
gdb.cc
gtrnctr.cc
kml.cc
ozi.cc
pcx.cc

diff --git a/alan.cc b/alan.cc
index 2bcb68ee26c32348a2cced8881128ab024de5703..5ad256fa223232b9406b81dedfa3228ef16180be 100644 (file)
--- a/alan.cc
+++ b/alan.cc
@@ -999,9 +999,10 @@ ff_vecs_t alanwpr_vecs = {
   wpr_write,
   alan_exit,
   wpr_args,
-  CET_CHARSET_ASCII, 0 /* ascii is the expected character set */
-  /* not fixed, can be changed through command
-  line parameter */
+  CET_CHARSET_ASCII, 0, /* ascii is the expected character set */
+  /* not fixed, can be changed through command line parameter */
+  NULL_POS_OPS,
+  nullptr
 };
 
 ff_vecs_t alantrl_vecs = {
@@ -1019,7 +1020,8 @@ ff_vecs_t alantrl_vecs = {
   trl_write,
   alan_exit,
   trl_args,
-  CET_CHARSET_ASCII, 0 /* ascii is the expected character set */
-  /* not fixed, can be changed through command
-  line parameter */
+  CET_CHARSET_ASCII, 0, /* ascii is the expected character set */
+  /* not fixed, can be changed through command line parameter */
+  NULL_POS_OPS,
+  nullptr
 };
diff --git a/an1.cc b/an1.cc
index 6719f62b7413fa490687af086d880c5474655f39..873ce1e51cd370c6d0111e33450e60fd7841fa67 100644 (file)
--- a/an1.cc
+++ b/an1.cc
@@ -59,40 +59,40 @@ static
 arglist_t an1_args[] = {
   {
     "type", &output_type, "Type of .an1 file",
-    "", ARGTYPE_STRING, ARG_NOMINMAX
+    "", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "road", &road_changes, "Road type changes",
-    "", ARGTYPE_STRING, ARG_NOMINMAX
+    "", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "nogc", &nogc, "Do not add geocache data to description",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "nourl", &nourl, "Do not add URLs to description",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "deficon", &opt_symbol, "Symbol to use for point data",
-    "Red Flag", ARGTYPE_STRING, ARG_NOMINMAX
+    "Red Flag", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "color", &opt_color, "Color for lines or mapnotes",
-    "red", ARGTYPE_STRING, ARG_NOMINMAX
+    "red", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "zoom", &opt_zoom, "Zoom level to reduce points",
-    nullptr, ARGTYPE_INT, ARG_NOMINMAX
+    nullptr, ARGTYPE_INT, ARG_NOMINMAX, nullptr
   },
   {
     "wpt_type", &opt_wpt_type,
     "Waypoint type",
-    "", ARGTYPE_STRING, ARG_NOMINMAX
+    "", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "radius", &opt_radius, "Radius for circles",
-    nullptr, ARGTYPE_STRING, ARG_NOMINMAX
+    nullptr, ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   ARG_TERMINATOR
 };
index 7d16d2b674875fee801fc37b5b314f6c7c5de8d5..f6e424375c004a98d497fc8bd2ebc0723dd4d039 100644 (file)
@@ -268,5 +268,7 @@ ff_vecs_t bushnell_vecs = {
   bushnell_write,
   nullptr,
   bushnell_args,
-  CET_CHARSET_MS_ANSI, 0  /* Not really sure... */
+  CET_CHARSET_MS_ANSI, 0,  /* Not really sure... */
+  NULL_POS_OPS,
+  nullptr
 };
index e61b512dee2a33f4ea1aec140addb403882f7711..ec6ca14f07298e9073a75beb86d36b1321731b32 100644 (file)
@@ -147,5 +147,7 @@ ff_vecs_t bushnell_trl_vecs = {
   bushnell_write,
   nullptr,
   bushnell_args,
-  CET_CHARSET_MS_ANSI, 0  /* Not really sure... */
+  CET_CHARSET_MS_ANSI, 0,  /* Not really sure... */
+  NULL_POS_OPS,
+  nullptr
 };
index e8919a6ef5bd8043998618b6452117c4c56ff401..b9a098016a9065e56203b75e8534967b94162a74 100644 (file)
@@ -92,19 +92,19 @@ static
 arglist_t compegps_args[] = {
   {
     "deficon", &option_icon, "Default icon name",
-    nullptr, ARGTYPE_STRING, ARG_NOMINMAX
+    nullptr, ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "index", &option_index, "Index of route/track to write (if more than one in source)",
-    nullptr, ARGTYPE_INT, "1", nullptr
+    nullptr, ARGTYPE_INT, "1", nullptr, nullptr
   },
   {
     "radius", &option_radius, "Give points (waypoints/route points) a default radius (proximity)",
-    nullptr, ARGTYPE_FLOAT, "0", nullptr
+    nullptr, ARGTYPE_FLOAT, "0", nullptr, nullptr
   },
   {
     "snlen", &option_snlen, "Length of generated shortnames (default 16)",
-    "16", ARGTYPE_INT, "1", nullptr
+    "16", ARGTYPE_INT, "1", nullptr, nullptr
   },
   ARG_TERMINATOR
 };
index 7dbef864e15e9f3983aa224c0a8cde34d0e83f71..7f034015a9d996764cead8582086173fc5f29b40 100644 (file)
--- a/dmtlog.cc
+++ b/dmtlog.cc
@@ -53,7 +53,7 @@ static
 arglist_t dmtlog_args[] = {
   {
     "index", &opt_index,
-    "Index of track (if more than one in source)", "1", ARGTYPE_INT, "1", nullptr
+    "Index of track (if more than one in source)", "1", ARGTYPE_INT, "1", nullptr, nullptr
   },
   ARG_TERMINATOR
 };
index 338fb4376cfbe18ad47ac60538b7020e3805eadd..aeb325e161031a1088c5ff071df0677c204ce153 100644 (file)
@@ -304,14 +304,15 @@ ff_vecs_t energympro_vecs = {
     ff_cap_read,  // tracks
     ff_cap_none   // routes
   },
-               rd_init,      // rd_init
-               nullptr,         // wr_init
-               rd_deinit,    // rd_deinit
-               nullptr,         // wr_deinit
-               data_read,    // read
-               nullptr,         // write
-               nullptr,         // exit
-               nullptr,         //args
-               CET_CHARSET_ASCII, 0  //encode,fixed_encode
-               //NULL                //name dynamic/internal?
+  rd_init,      // rd_init
+  nullptr,      // wr_init
+  rd_deinit,    // rd_deinit
+  nullptr,      // wr_deinit
+  data_read,    // read
+  nullptr,      // write
+  nullptr,      // exit
+  nullptr,      // args
+  CET_CHARSET_ASCII, 0,  // encode, fixed_encode
+  NULL_POS_OPS,
+  nullptr
 };
index 5ecd4ece6a6d6caca58984203a4c0aaedf100b8b..0a3de6f17822b083278bc72c36944dec1ef3d039 100644 (file)
--- a/enigma.cc
+++ b/enigma.cc
@@ -217,5 +217,7 @@ ff_vecs_t enigma_vecs = {
   data_write,
   nullptr,
   nullptr,
-  CET_CHARSET_ASCII, 0 /* CET-REVIEW */
+  CET_CHARSET_ASCII, 0,        /* CET-REVIEW */
+  NULL_POS_OPS,
+  nullptr
 };
diff --git a/exif.cc b/exif.cc
index 48d09b3a4594f051ff5e56e461727b8bc2aac8a1..85e11c202f2e87db692f7369c10d096a19ba5d6d 100644 (file)
--- a/exif.cc
+++ b/exif.cc
@@ -1562,7 +1562,9 @@ ff_vecs_t exif_vecs = {
   exif_write,
   nullptr,
   exif_args,
-  CET_CHARSET_UTF8, 0
+  CET_CHARSET_UTF8, 0,
+  NULL_POS_OPS,
+  nullptr
 };
 
 /**************************************************************************/
index 38270128f5b4d161008591c845347da221b45f67..7900370896fec728e4d7cc2d8400344e88c4b650 100644 (file)
@@ -116,7 +116,7 @@ static
 arglist_t garmin_txt_args[] = {
   {"date",  &opt_date_format, "Read/Write date format (i.e. yyyy/mm/dd)", nullptr, ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
   {"datum", &opt_datum,            "GPS datum (def. WGS 84)", "WGS 84", ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
-  {"dist",  &opt_dist,        "Distance unit [m=metric, s=statute]", "m", ARGTYPE_STRING, ARG_NOMINMAX},
+  {"dist",  &opt_dist,        "Distance unit [m=metric, s=statute]", "m", ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
   {"grid",  &opt_grid,        "Write position using this grid.", nullptr, ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
   {"prec",  &opt_precision,   "Precision of coordinates", "3", ARGTYPE_INT, ARG_NOMINMAX, nullptr},
   {"temp",  &opt_temp,        "Temperature unit [c=Celsius, f=Fahrenheit]", "c", ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
diff --git a/gdb.cc b/gdb.cc
index 8e959c2678db818528f2264c3f212873f3744855..8709ea011df3e42ad10439915046b821ddabddf2 100644 (file)
--- a/gdb.cc
+++ b/gdb.cc
@@ -1856,26 +1856,26 @@ static arglist_t gdb_args[] = {
   {
     GDB_OPT_CATEGORY, &gdb_opt_category,
     "Default category on output (1..16)",
-    nullptr, ARGTYPE_INT, "1", "16"
+    nullptr, ARGTYPE_INT, "1", "16", nullptr
   },
   {
     GDB_OPT_BITCATEGORY, &gdb_opt_bitcategory, "Bitmap of categories",
-    nullptr, ARGTYPE_INT, "1", "65535"
+    nullptr, ARGTYPE_INT, "1", "65535", nullptr
   },
   {
     GDB_OPT_VER, &gdb_opt_ver,
     "Version of gdb file to generate (1..3)",
-    "2", ARGTYPE_INT, "1", "3"
+    "2", ARGTYPE_INT, "1", "3", nullptr
   },
   {
     GDB_OPT_VIA, &gdb_opt_via,
     "Drop route points that do not have an equivalent waypoint (hidden points)",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     GDB_OPT_ROADBOOK, &gdb_opt_roadbook,
     "Include major turn points (with description) from calculated route",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
 
   ARG_TERMINATOR
index a6916c6fa4a69ef2d34aa5e583eff2ebbe382fa4..45b5f7f169aedb47b367e30cfc9190c21c4e3c62 100644 (file)
@@ -59,11 +59,11 @@ static
 arglist_t gtc_args[] = {
   {
     "course", &opt_course, "Write course rather than history, default yes",
-    "1", ARGTYPE_BOOL, ARG_NOMINMAX
+    "1", ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "sport", &opt_sport, "Sport: Biking (deflt), Running, MultiSport, Other",
-    "Biking", ARGTYPE_STRING, ARG_NOMINMAX
+    "Biking", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   ARG_TERMINATOR
 };
diff --git a/kml.cc b/kml.cc
index 164e5960b20da3cd7d346dfc7823ea95194fd07a..c8642eb2777b05ed74b561a3b68d98109225cf25 100644 (file)
--- a/kml.cc
+++ b/kml.cc
@@ -2233,5 +2233,6 @@ ff_vecs_t kml_vecs = {
   nullptr,
   kml_args,
   CET_CHARSET_UTF8, 1, /* CET-REVIEW */
-  { nullptr, nullptr, nullptr, kml_wr_position_init, kml_wr_position, kml_wr_position_deinit }
+  { nullptr, nullptr, nullptr, kml_wr_position_init, kml_wr_position, kml_wr_position_deinit },
+  nullptr
 };
diff --git a/ozi.cc b/ozi.cc
index 2f8e1f409fc01f2d4b3e637a5354763123e84911..e326fd686771eef44595568f7b78cdc3274104cb 100644 (file)
--- a/ozi.cc
+++ b/ozi.cc
@@ -74,43 +74,43 @@ static
 arglist_t ozi_args[] = {
   {
     "pack", &pack_opt, "Write all tracks into one file",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "snlen", &snlenopt, "Max synthesized shortname length",
-    "32", ARGTYPE_INT, "1", nullptr
+    "32", ARGTYPE_INT, "1", nullptr, nullptr
   },
   {
     "snwhite", &snwhiteopt, "Allow whitespace synth. shortnames",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "snupper", &snupperopt, "UPPERCASE synth. shortnames",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "snunique", &snuniqueopt, "Make synth. shortnames unique",
-    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX
+    nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
   },
   {
     "wptfgcolor", &wptfgcolor, "Waypoint foreground color",
-    "black", ARGTYPE_STRING, ARG_NOMINMAX
+    "black", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "wptbgcolor", &wptbgcolor, "Waypoint background color",
-    "yellow", ARGTYPE_STRING, ARG_NOMINMAX
+    "yellow", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "proximity", &proximityarg, "Proximity distance",
-    "0", ARGTYPE_STRING, ARG_NOMINMAX
+    "0", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "altunit", &altunit_opt, "Unit used in altitude values",
-    "feet", ARGTYPE_STRING, ARG_NOMINMAX
+    "feet", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   {
     "proxunit", &proxunit_opt, "Unit used in proximity values",
-    "miles", ARGTYPE_STRING, ARG_NOMINMAX
+    "miles", ARGTYPE_STRING, ARG_NOMINMAX, nullptr
   },
   ARG_TERMINATOR
 };
diff --git a/pcx.cc b/pcx.cc
index 935629755bbf3eb82ecaedee364678ac191f380a..9b50861414404c2f3074f5c2049e37d5c0d2d471 100644 (file)
--- a/pcx.cc
+++ b/pcx.cc
@@ -44,10 +44,10 @@ static int lon_col;
 #define MYNAME "PCX"
 
 static arglist_t pcx_args[] = {{"deficon", &deficon, "Default icon name",
-                                "Waypoint", ARGTYPE_STRING, ARG_NOMINMAX},
+                                "Waypoint", ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
                                {"cartoexploreur", &cartoexploreur,
                                 "Write tracks compatible with Carto Exploreur",
-                                nullptr, ARGTYPE_BOOL, ARG_NOMINMAX},
+                                nullptr, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr},
                                ARG_TERMINATOR};
 
 static void rd_init(const QString& fname) {